#ifndef MOTOR_H
#define MOTOR_H

#define DIR_F_R D15
#define DIR_F_L D14
#define PWM_F_R (PWM1_MODULE0_CHB_D13)
#define PWM_F_L (PWM1_MODULE0_CHA_D12)

#define DIR_B_R D1
#define DIR_B_L D0
#define PWM_B_R (PWM2_MODULE3_CHB_D3)
#define PWM_B_L (PWM2_MODULE3_CHA_D2)

#include "zf_common_headfile.h"

#define MAX_SPEED 5500

void motor_init(void);
void motor_set_speed(int f_l_speed, int f_r_speed, int b_l_speed, int b_r_speed);
#endif